/*
 * Copyright (c) 2023 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "CppUTestExt/MockSupport.h"

extern "C"
{
#include "fake.h"
}

void Utils_NotifyWifi(const char *localMac, const char *peerMac, int finalType)
{
    // gona call wifi interface here ...
    (void)localMac;
    (void)peerMac;
    (void)finalType;
    printf("%s: localMac=%s, peerMac=%s, finalType=%d\n", __func__, localMac, peerMac, finalType);

    mock("WIFI")
            .actualCall("Utils_NotifyWifi")
            .withParameter("localMac", (const char *)localMac)
            .withParameter("peerMac", (const char *)peerMac)
            .withParameter("finalType", (int)finalType);
}

// ErrCode WifiP2pImpl::Hid2dSetUpperScene(const std::string& ifName, const Hid2dUpperScene& scene)
// {
//     std::lock_guard<std::mutex> lock(mutex_);
//     RETURN_IF_FAIL(GetWifiP2pProxy());
//     return client_->Hid2dSetUpperScene(ifName, scene);
// }

